package com.sunriz.motordrive.server.photoVoltaic.Impl;

import com.sunriz.motordrive.domain.DTO.BatchConfigDTO;
import com.sunriz.motordrive.mapper.BatchHcMapper;
import com.sunriz.motordrive.server.photoVoltaic.BatchHcServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: BatchHcServerImpl
 * Package: com.sunriz.motordrive.server.photoVoltaic.Impl
 * Description:
 *
 * @Author BuTang
 * @Create 2024/9/13 16:13
 * @Version 1.0
 */
@Service
public class BatchHcServerImpl implements BatchHcServer {

    @Autowired
    BatchHcMapper batchHcMapper;

    @Override
    public void addConfig(BatchConfigDTO batchConfigDTO) {
        batchHcMapper.addConfig(batchConfigDTO);
    }

    @Override
    public List<BatchConfigDTO> getList(int configId) {
        List<BatchConfigDTO> list = batchHcMapper.getList(configId);
        return list;
    }

    @Override
    public List getConfigList() {
        List list = batchHcMapper.getConfigList();
        return list;
    }

    @Override
    public void updateConfig(BatchConfigDTO batchConfigDTO) {
        batchHcMapper.updateConfig(batchConfigDTO);
    }
}
